package com.yangc.chapter04springboot;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
@MapperScan(basePackages ="com.yangc.chapter04springboot.mapper",sqlSessionFactoryRef = "sqlSessionFactory") // 扫描mapper类
public class Chapter04SpringbootApplication {

    public static void main(String[] args) {
        SpringApplication.run(Chapter04SpringbootApplication.class, args);
    }

}
